﻿using System;
using System.Runtime.Serialization;
using Dynamic.Core.Attributes;

namespace Dynamic.Data.Model.DataType
{
    /// <summary>
    /// 模型类型
    /// </summary>
    [DataContract]
    [EnumType(DisplayName = "模型类型", Name = "ModelType")]
    public enum ModelType
    {
        /// <summary>
        /// 动态实体
        /// </summary>
        [EnumMember]
        [EnumValue(DisplayName = "动态实体", Name = "DynamicEntity")]
        DynamicEntity = 1,

        /// <summary>
        /// 映射实体
        /// </summary>
        [EnumMember]
        [EnumValue(DisplayName = "映射实体", Name = "MappingEntity")]
        MappingEntity = 2,

        /// <summary>
        /// 元数据实体
        /// </summary>
        [EnumMember]
        [EnumValue(DisplayName = "元数据实体", Name = "Metadata")]
        Metadata = 3
    }
}
